package org.zpmis.domain.mail.model;

import lombok.Data;

@Data
public class SimpleMailMessageParam extends MailBaseMessage{


    /**
     * 普通邮件内容
     */
    private String text;

    /**
     * 普通文本邮件
     * @param toEmail
     * @param ccEmail
     * @param bccEmial
     * @param subject
     * @param text
     */
    public SimpleMailMessageParam(String toEmail, String ccEmail, String bccEmial, String subject, String text) {
        super.setToEmial(toEmail);
        super.setCcEmail(ccEmail);
        super.setBccEmail(bccEmial);
        super.setSubject(subject);
        this.text = text;
    }

    /**
     * 普通文本邮件
     * @param toEmail
     * @param subject
     * @param text
     */
    public SimpleMailMessageParam(String toEmail, String subject, String text) {
        super.setToEmial(toEmail);
        super.setSubject(subject);
        this.text = text;
    }
}
